<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
  <title><!--{$lang.page.index.title}--></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/lay/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/lay/layui/index.css" media="all">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-form layuiadmin-card-header-auto" style="padding-bottom:40px">
          <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.account}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.username}-->
            </div>
          </div>
          <div class="ayui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.realname}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.realname}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.phone}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.mobile}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.public.email}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.email}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.fieldnum}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.sn}-->
            </div>
          </div>
        </div>
        <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.product}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.proname}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.money}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.money}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.type}--></label>
            <div class="layui-text-inline">
              <!--{if $datainfo.type eq 1}--><!--{$lang.page.table.tradeing}-->
              <!--{else if $datainfo.type eq 2}--><!--{$lang.page.table.virtual}-->
              <!--{/if}--> 
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.status}--></label>
            <div class="layui-text-inline">
              <!--{if $datainfo.status eq 1}--><!--{$lang.page.table.tradeings}-->
              <!--{else if $datainfo.status eq 2}--><!--{$lang.page.table.finish}-->
              <!--{/if}--> 
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.direction}--></label>
            <div class="layui-text-inline">
              <!--{if $datainfo.updown eq 1}--><!--{$lang.page.table.buyup}-->
              <!--{else if $datainfo.updown eq 2}--><!--{$lang.page.table.buydown}-->
              <!--{/if}--> 
            </div>
          </div>
        </div>
        <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.profitloss}--></label>
            <div class="layui-text-inline">
              <!--{if $datainfo.win eq 1 && $datainfo.status eq 2}--><!--{$lang.page.table.win}-->
              <!--{else if $datainfo.win eq 2 && $datainfo.status eq 2}--><!--{$lang.page.table.loss}-->
              <!--{else}--><!--{$lang.page.table.error}-->
              <!--{/if}--> 
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.buyingp}--></label>
            <div class="layui-text-inline"><!--{$datainfo.buyprice}--></div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.sellingp}--></label>
            <div class="layui-text-inline"><!--{$datainfo.sellprice}--></div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.fee}--></label>
            <div class="layui-text-inline"><!--{$datainfo.sx_fee}--></div>
          </div>
        </div>
        <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.createtime}--></label>
            <div class="layui-text-inline"><!--{$datainfo.createtime}--></div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.finish}--> <!--{$lang.page.table.time}--></label>
            <div class="layui-text-inline"><!--{date('Y-m-d H:i:s',$datainfo.endtime)}--></div>
          </div>
         </div>
      </div>
      
      <div class="layui-form layuiadmin-card-header-auto" style="padding-bottom:40px">
        <div class="layui-text-item">
          <label class="layui-text-label"><!--{$lang.page.table.order}--> <!--{$lang.page.public.record}--></label>
        </div>
        <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.type}--></label>
            <div class="layui-text-inline">
              <!--{if $datainfo.type eq 1}--><!--{$lang.page.table.tradeing}-->
              <!--{else if $datainfo.type eq 2}--><!--{$lang.page.table.virtual}-->
              <!--{/if}--> 
            </div>
          </div>
        </div>
        <div class="layui-text-item">
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.public.placef}--> <!--{$lang.page.table.balance}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.orderlog.amount}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.public.placeb}--> <!--{$lang.page.table.balance}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.orderlog.backamount}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.table.order}--> <!--{$lang.page.table.money}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.orderlog.money}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.public.placeo}--> <!--{$lang.page.table.money}--></label>
            <div class="layui-text-inline">
              <!--{$datainfo.orderlog.backmoney}-->
            </div>
          </div>
          <div class="layui-text-line">
            <label class="layui-text-label"><!--{$lang.page.public.record}--> <!--{$lang.page.table.time}--></label>
            <div class="layui-text-inline"><!--{date('Y-m-d H:i:s',$datainfo.orderlog.createtime)}--></div>
          </div>
        </div>
      </div>
      

        <div class="layui-form-item layui-layout-admin">
            <div>
              <div class="layui-footer" style="left: 0;">
                <button type="button" class="layui-btn layui-btn-primary" onClick="xadmin.close();" ><!--{$lang.page.table.back}--></button>
              </div>
            </div>
          </div>

      </div>
    </div>
<script src="/static/lay/layui/layui.js"></script>
  <script type="text/javascript">
    layui.config({
     base: '/static/lay/' //静态资源所在路径
   }).extend({
     xadmin: 'lib/xadmin' //弹窗
   }).use(['jquery', 'layer','xadmin', 'form'], function(){
    var form = layui.form;
    form.render(null, 'component-form-group');

    form.on('submit(submit)', function (data) {
          $('#submit').attr("disabled",true);
          $('#submit').addClass('layui-btn-disabled');
          $.post('#',data.field,function(res){
              if(res.code == 200){
                  layer.msg(res.msg);
                  setTimeout(() => {
                      // window.parent.location.reload();
                      xadmin.close();
                  }, 1000);
              }else{
                 layer.msg(res.msg);
              }
          })
        return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
    });
    //重置按钮，可以提交失败的时候再次提交
    $('#reset').click(function(){
        $('#submit').removeAttr("disabled");
        $('#submit').removeClass('layui-btn-disabled');
    });
  });
  </script>
</body>
</html>

